import { ProTable } from '@ant-design/pro-components';
import '@umijs/max';
import { Modal } from 'antd';
import React from 'react';
const CreateModal = (props) => {
    const { visible, onCancel, onSubmit, columns } = props;
    return (<Modal open={visible} footer={null} onCancel={() => onCancel?.()}>
      
      <ProTable type="form" columns={columns} onSubmit={async (value) => {
            onSubmit?.(value);
        }}/>
    </Modal>);
};
export default CreateModal;
//# sourceMappingURL=CreateModal.jsx.map